package com.example.japinhands.ui.screen

import androidx.compose.foundation.layout.Column
import androidx.compose.material3.Button
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.navigation.NavController
import com.example.japinhands.JapViewModel
import com.example.japinhands.route.Route
import kotlin.concurrent.thread

@Composable
fun TestScreen(
    navController: NavController,
    viewModel: JapViewModel,
    modifier: Modifier = Modifier
) {
    Column {
        Button(onClick = {
            navController.navigate(Route.NewSentence.route)
        }) {
            Text(text = "Add New Sentence")
        }
        Button(onClick = {
            navController.navigate(Route.ManageSentence.route)
        }) {
            Text(text = "Manage Sentences")
        }
        Button(onClick = {
            navController.navigate(Route.ManageDeformAdj.route)
        }) {
            Text(text = "Manage Deform Adj")
        }
        Button(onClick = {
            navController.navigate(Route.TestManageWord.route)
        }) {
            Text(text = "Manage Word")
        }
        Button(onClick = {
            navController.navigate(Route.NewDeformVerb.route)
        }) {
            Text(text = "New Deform Verb")
        }
        Button(onClick = { 
            navController.navigate(Route.NewDeformAdj.route)
        }) {
            Text(text = "New Deform Adj")
        }
        Button(onClick = { 
            navController.navigate(Route.NewWord.route)
        }) {
            Text(text = "New Word")
        }
        Button(onClick = {
            thread {
                viewModel.deleteAll()
            }
        }) {
            Text(text = "Delete All Tables")
        }
        Button(onClick = {

        }) {
            Text(text = "Update word")
        }
    }
}